package com.zuipin.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.zuipin.framework.annotation.Valid;
import com.zuipin.framework.annotation.Valids;
import com.zuipin.framework.result.Result;
import com.zuipin.service.ISysUserService;
import com.zuipin.vo.PermissionVo;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

/**
 * 权限管理
 * @ClassName SysPermissionController
 * @author chenjunjie
 * @date 2017年9月19日 下午3:22:35
 */
@RestController
@RequestMapping(value = "/sys/permission")
@Api(value = "权限管理", description = "权限管理-chenjunjie")
public class SysPermissionController {
	@Resource
	private ISysUserService sysUserService;
	
	/**
	 * 设置 权限接口
	 * @param updateId 操作人
	 * @param id
	 * @param isPublic
	 * @return
	 */
	@RequestMapping(value = "/setPermission", method = RequestMethod.POST)
	@ApiOperation(value = "权限管理-权限设置--chenjunjie", notes = "权限设置")
	@Valids({ @Valid(name = "permissions", maxLength = 19) })
	@ApiImplicitParams({ @ApiImplicitParam(name = "permissions", value = "json格式", required = true, dataType = "id", paramType = "query"),
			@ApiImplicitParam(name = "updateId", value = "操作人", required = true, dataType = "updateId", paramType = "query") })
	public Result<String> setPermission(@ApiParam(required = true, name = "permissions", value = "权限数据集") @RequestParam List<PermissionVo> permissions) {
		if (permissions == null) {
			
		}
		return null;
	}
	
}
